﻿@model Gfw.Models.Admin.UsrDepartment

@{
    ViewBag.Title = "CreateRoot";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

<script src="~/Scripts/jquery-1.6.2.min.js"></script>
<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>UsrDepartment</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Parentid)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Parentid)
            @Html.ValidationMessageFor(model => model.Parentid)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SortIndex)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SortIndex)
            @Html.ValidationMessageFor(model => model.SortIndex)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
